package cn.edu.scau.cmi.wuyihan.singleton;

public class Chairman {
	private static Chairman chairman;
	private String name;
	
	private Chairman(String name) {
		this.name = name;
	}
	
	public static Chairman getInstance(String name) {
		if(chairman == null && !name.equals(null)) {
			chairman = new Chairman(name); 
		}
		
		return chairman;
	}

	@Override
	public String toString() {
		return name + super.toString();
	}
	
}
